package org.example.huweb.config;

import org.example.utils.minioUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.example.properties.minio.minioProperties;


@Configuration
// 扫描配置类
@ComponentScan(basePackages = "org.example.properties.minio")
// minio配置类
public class minioConfig {

    @Bean
    public minioUtils minioClient(minioProperties minioProperties) {
        return new minioUtils(minioProperties);
    }
}
